package com.temi.iot.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author a
 * @since 2019-12-11
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_device")
@ApiModel(value="TbDevice对象", description="")
@AllArgsConstructor
@NoArgsConstructor
public class TbDevice extends Model<TbDevice> {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "设备名称")
    private String name;

    private Integer regionId;

    @ApiModelProperty(value = "设备编号")
    private String deviceNo;

    @ApiModelProperty(value = "设备类型,")
    private Integer deviceModel;

    @ApiModelProperty(value = "启用状态:0-未启用,1-使用中,2-停用,3-维修,4-损坏")
    private Integer deviceType;

    private LocalDateTime createTime;

    private String cext1;

    private String cext2;


    @Override
    protected Long pkVal() {
        return id;
    }
}
